package com.sakila.vo;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import com.sakila.pojo.Staff;

public class MyUser extends User{
	/**
	 * 
	 */
	private static final long serialVersionUID = 755183561722375993L;
	private Staff staff;
	
	public MyUser(String username, String password,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
	}

	public MyUser(String username, String password,
			Collection<? extends GrantedAuthority> authorities, Staff staff) {
		super(username, password, authorities);
		this.staff = staff;
	}

	public Staff getStaff() {
		return staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}
}
